#!/bin/bash


. ${LKP_SRC}/lib/debug.sh
. ${LKP_SRC}/lib/create_compile_env.sh

main()
{
	create_compile_env
	cd ${root_path}
	cat > run.cfg <<-EOF
	cd ${LKP_SRC}/tests && bash build_qcow2_image_chroot
	EOF
	bash chroot.sh < run.cfg
	if [ -f /openEuler_compile_env/tmp/build_failed ];then
		die "make qcow2 failed."
	fi
}


main
